cmake_minimum_required(VERSION 3.0)
set(CMAKE_BUILD_TYPE Release)
project (µWebSockets)

add_subdirectory(examples)

add_library(uWS SHARED src/uWS.cpp)
target_include_directories(uWS PUBLIC src)
target_compile_features(uWS PRIVATE cxx_nullptr)
target_link_libraries (uWS LINK_PUBLIC uv)
target_link_libraries (uWS LINK_PUBLIC ssl)
target_link_libraries (uWS LINK_PUBLIC crypto)

if (UNIX)
target_link_libraries (uWS LINK_PUBLIC pthread)
endif (UNIX)
